<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.comment.actions.override">

  <require>org.nuxeo.ecm.platform.comment.actions</require>

  <extension point="actions" target="org.nuxeo.ecm.platform.actions.ActionService">
    <action enabled="true" id="view_comments" label="action.view.comments" link="/incl/tabs/document_comments.xhtml" order="80" type="rest_document_link">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>commentable</filter-id>
      <filter-id>mutable_document</filter-id>
      <filter-id>not_anonymous</filter-id>
    </action>

    <!-- add the comment creation button -->
    <action enabled="true" id="newComment" label="command.add" link="#{commentManagerActions.addComment}" order="10">
      <category>COMMENT_ACTIONS</category>
    </action>

    <action enabled="true" id="cancelComment" label="command.cancel" link="#{commentManagerActions.cancelComment}" order="20">
      <category>COMMENT_ACTIONS</category>
    </action>
  </extension>

</component>
